package com.example.util;

import org.springframework.util.CollectionUtils;

import java.util.List;

/**
 * @author ：chengyoubang
 * @version ：V1.0
 * @program ：hmall
 * @date ：Created in 2024/11/15 23:41
 * @description ：
 */
public class CommonUtil {

    public static int nvlSize(List list){
        return CollectionUtils.isEmpty(list)?0:list.size();
    }
}

